package com.ces.knacky.controller.tools;

import java.util.Date;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.ces.knacky.framework.controller.BaseController;
import com.ces.knacky.framework.model.IEntity;
import com.ces.knacky.model.Flag;
import com.ces.knacky.model.RoleTable;
@Controller
public class SaveRoleController extends BaseController {
	
	
	private String description;
	
	@RequestMapping ("/saveRole.htm")	
	public String execute(){
		System.out.println("Inside Save Role");
		RoleTable role = new RoleTable();
		role.setDescription(description);
		commonService.add(role);
		return "saveRole";
	}

	/**
	 * @return the description
	 */	
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	@ModelAttribute("description")
	public void setDescription(String description) {
		this.description = description;
	}




}
